package NewCode;
// 本题为考试单行多行输入输出规范示例，无需提交，不计分。

import java.util.Scanner;

/**
 * @author wangchenghao
 * @date 2021/7/29
 **/
public class test2 {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNextInt()) {// 注意，如果输入是多个测试用例，请通过while循环处理多个测试用例
            int a = in.nextInt();
            int b = in.nextInt();
            int c = in.nextInt();
            double min = (a+b/3-c/3) ;
            int res = min > (int) min ? (int) min + 1 : (int) min;
            System.out.println("res = " + res);
        }

    }
    }
